home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextLibrary / Receipts / NEXTSTEPDeveloperPatch.pkg / NEXTSTEPDeveloperPatch.post_install < prev    next >
Encoding:
Text File  |  1995-01-27  |  1.4 KB  |  48 lines

  1. #!/bin/csh -f
  2.  
  3. # NEXTSTEPDeveloperPatch.post_install
  4.  
  5. echo ""
  6.  
  7. echo -n "        Checking compiler ... "
  8. if ( ! -x /bin/cc ) then
  9.     echo "Couldn't find /bin/cc.  /bin/cc (in the DeveloperTools package) is required for building precompiled headers."
  10.     exit 1
  11. endif
  12. echo "OK."
  13.  
  14. set arch_type = `/usr/bin/arch`
  15. if ( ${arch_type} == "sparc" ) then
  16.     set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa -arch sparc"
  17. else if ( ${arch_type} == "hppa" ) then
  18.     set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa"
  19. else
  20.     set RC_CFLAGS = "-arch m68k -arch i386"
  21. endif
  22.  
  23. set headers = ( ansi/ansi.h bsd/libc.h mach/mach.h mach/cthreads.h objc/Object.h appkit/appkit.h dbkit/dbkit.h 3Dkit/3Dkit.h indexing/indexing.h )
  24. foreach hdr ( ${headers} )
  25.     set header  = /NextDeveloper/Headers/${hdr}
  26.     set precomp = `echo ${header} | /bin/sed -e 's/h$/p/'`
  27.     if ( -f ${header} ) then 
  28.     echo -n "        Precompiling ${header} (this can take a while)... "
  29.     /bin/cc -precomp ${header} -o ${precomp} ${RC_CFLAGS} || exit 1
  30.     echo "OK."
  31.     endif
  32. end
  33.  
  34. echo -n "        Indexing /NextDeveloper/Headers (this can take a while)... "
  35. chdir /NextDeveloper/Headers
  36. /bin/rm -f .index.store || exit 1
  37. /usr/bin/ixbuild -fs -LEnglish || exit 1
  38. echo "OK."
  39.  
  40. echo -n "        Indexing /NextLibrary/Documentation/NextDev (this can take a while)... "
  41. chdir /NextLibrary/Documentation/NextDev
  42. /bin/rm -f .index.store || exit 1
  43. /usr/bin/ixbuild -fs -LEnglish || exit 1
  44. echo "OK."
  45.  
  46. echo "    ... done."
  47. exit 0
  48.